package indi.jp.project.business.pub.service;

import indi.jp.project.business.pub.pojo.po.ProjectPO;
import indi.jp.project.business.pub.pojo.query.ProjectQuery;
import indi.jp.project.core.entity.JsonResult;

/**
 * (PubProject)表服务接口
 *
 * @author makejava
 * @since 2021-08-16 10:04:19
 */
public interface ProjectService {

    JsonResult queryGrid(ProjectQuery query) throws Exception;

    JsonResult save(ProjectPO projectPO) throws Exception;

    JsonResult deleteById(String id) throws Exception;

    JsonResult findById(String id) throws Exception;

    /**
     * 新增项目
     * 返回项目ID
     */
    String add(ProjectPO projectPO) throws Exception;

    /**
     * 更新项目
     */
    void edit(ProjectPO projectPO) throws Exception;

}
